import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import query from '@dfeidao/atom-nodejs/db/query';
import { systemid,productid } from '../../atom/config';
interface Message {
	filter:{
		work_bill_no:string[]

	}
}



export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders){
	const  p= query(action_id,session_id,systemid);
	p.prepare('cust_reask_rec', ['work_bill_no','revisit_days','cust_sat'], { productid,work_bill_no:{$in:message.filter.work_bill_no}}
	, 200, 1, [], []);
	p.prepare('cust_reask_rec', ['cust_sat'], { productid,work_bill_no:{$in:message.filter.work_bill_no}}
	, 200, 1, [], []);
	const [dt1,dt2] = await p.exec();
	return {dt1,dt2};
}
	